<?php
//the should better be included in view.yml with the main application html
//use_stylesheet('/jfPortableDeviceExtImageGalleryPlugin/photoswipe/photoswipe.css');
//use_stylesheet('/jfPortableDeviceExtImageGalleryPlugin/main.css');
//
//use_javascript('/jfPortableDeviceExtImageGalleryPlugin/photoswipe/lib/klass.min.js', 'first');
//use_javascript('/jfPortableDeviceExtImageGalleryPlugin/photoswipe/code-photoswipe-jQuery.js', 'first');
//use_javascript('/jfPortableDeviceExtImageGalleryPlugin/main.js', 'first');
?>
<ul class="jfPDExtImageGallery">
  <?php foreach ($sf_data->getRaw('images') as $image): ?>
    <?php include_partial('jfPortableDeviceExtImageGallery/thumbnail', array('image' => $image)) ?>
  <?php endforeach; ?>
</ul>
<?php if (!empty($jsOptions)): ?>
<script>
var jfPDExtPhotoSwipeOptions = <?php echo json_encode($sf_data->getRaw('jsOptions')); //used to intialized photoswipe lib ?>;
</script>
<?php endif; ?>